<template>
  <div style="padding-bottom: 130rpx;">
    <i-panel title="基础用法">
      <i-input :value="value1" title="收货人" autofocus placeholder="您的姓名" />
      <i-input :value="value2" type="number" title="手机号码" placeholder="快递员联系您的方式" />
      <i-input :value="value3" title="用户信息" disabled placeholder="请选择" />
      <i-input :value="value4" type="textarea" title="详细地址" placeholder="请输入详细地址" maxlength="50" />
    </i-panel>
    <div class="zhanwei">
    </div>
    <div class="bookInfo">
      <ul>
        <li>
          <span>平视姚明</span>
          <span>￥30.10</span>
        </li>
        <li>
          <span>这辈子我最想做的事</span>
          <span>￥30.10</span>
        </li>
      </ul>
      <div>
        <span>运费</span>
        <span>用户到付</span>
      </div>
    </div>
    <div class="button">
      <div>
        寄回
      </div>
      <p @click="radioChange">
        <radio color="#c85051" class="radio" :checked="checked"></radio>
        <span>我已阅读并同意收书规则</span>
      </p>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      value1: '',
      value2: '',
      value3: '',
      value4: '',
      checked: true
    }
  },
  methods: {
    radioChange() {
      this.checked = !this.checked
    }
  }
}
</script>
<style lang="scss" scoped>
.zhanwei {
  height: 18rpx;
  background-color: #eee;
}
.bookInfo {
  padding: 50rpx 18rpx;
  ul,
  div {
    padding: 18rpx 12rpx;
    border-bottom: 1rpx solid #eee;
  }
  li,
  div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60rpx;
    line-height: 60rpx;
    span {
      font-size: 32rpx;
    }
  }
  li > span:nth-child(1) {
    font-weight: 900;
  }
}
.button {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 130rpx;
  padding: 0 18rpx;
  width: 100%;
  text-align: center;
  div {
    border-radius: 20rpx;
    width: 714rpx;
    height: 74rpx;
    line-height: 74rpx;
    color: #fff;
    font-size: 40rpx;
    background-color: #c78650;
  }
  p {
    font-size: 30rpx;
    .radio {
      vertical-align: middle;
      transform: scale(0.7);
    }
    span {
      vertical-align: middle;
    }
  }
}
</style>

